package com.rightsidetech.system.mapper;

import com.rightsidetech.system.dtos.request.ActivityMaterialReq;
import com.rightsidetech.system.dtos.response.material.ActivityMaterialAppResp;
import com.rightsidetech.system.dtos.response.material.ActivityMaterialDetailsResp;
import com.rightsidetech.system.dtos.response.material.ActivityMaterialResp;
import com.rightsidetech.system.entity.SysMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMaterialSendRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysMaterial record);

    int insertSelective(SysMaterial record);

    SysMaterial selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysMaterial record);

    int updateByPrimaryKey(SysMaterial record);

    List<ActivityMaterialResp> list(ActivityMaterialReq request);

    ActivityMaterialDetailsResp findDetails(@Param("id") Long id);

    List<ActivityMaterialAppResp> listByTarget(@Param("target") Byte target);
}